<template>
  <!-- 回复某层楼 -->
  <div class="reply_floor">
    <div class="mask" @click="back"></div>
    <div class="content">
      <textarea class="text" style="resize: none">自己设置宽高即可</textarea>
      <div class="submit">
        <span>0字</span>
        <div class="btn">发送</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    back(){
      this.$emit('change-show-reply',false)
    }
  },
};
</script>
<style lang="less" scoped>
.reply_floor {
  .text {
    height: 100px !important;
    padding: 0 !important;
    color: #454545;
  }
}
.reply_floor {
  .mask {
    z-index: 9999;
    position: fixed;
    // position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 66;
    overflow: hidden;
  }
  .content {
    padding: 13px;
    z-index: 77;
    // position: absolute;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    height: 24vh;
    //计算符之间需要使用空格
    width: 100vw;
    // 如果不不用calc的话,内容左边会有marginleft而right没有效果
    .text {
      padding: 13px 0;
      width: 100%;
      height: 100px;
      border: none;
      color: #9d9d9d;
    }
    .submit {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 30px;
      font-size: 13px;
      .btn {
        width: 40px;
        height: 20px;
        background-color: #f2a696;
        text-align: center;
        line-height: 20px;
        color: #fff;
        border-radius: 20px;
        font-size: 12px;
      }
    }
  }
}
</style>